import java.util.Scanner;

public class StringDemo1 {
    static void main() {
        Scanner sc = new Scanner(System.in);
        System.out.println("请输入一个字符串");
        String str = sc.next();

    int Bigcount=0;
    int Smallcount=0;
    int Numbercount=0;
    for(int i=0;i<str.length();i++) {
        char c = str.charAt(i);
        if(c>='0' && c<='9') {
            Numbercount++;
        }else if(c>='a' && c<='z') {
            Smallcount++;
        }else if(c>='A' && c<='Z') {
            Bigcount++;
        }
    }
        System.out.println("小写字母有"+Smallcount+"个");
        System.out.println("大写字母有"+Bigcount+"个");
        System.out.println("数字有"+Numbercount+"个");
    }
}
